//
//  KYSportTracking.h
//  kyysprot
//
//  Created by HongYi on 2017/7/1.
//  Copyright © 2017年 kcvly. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>

typedef NS_ENUM(NSUInteger, KYSportType) {
    KYSportTypeRun,
    KYSportTypeWalk,
    KYSportTypeBike,
};

typedef NS_ENUM(NSUInteger, KYSportState) {
    KYSportStatePause,
    KYSportStateContinue,
    KYSportStateStop,
};

@interface KYSportTracking : NSObject
@property (nonatomic, assign, readonly) KYSportType sportType;
@property (nonatomic, assign) KYSportState sportState;
@property (nonatomic, strong, readonly) UIImage *sportIcon;
@property (nonatomic, assign, readonly) double totalDistance;
@property (nonatomic, assign, readonly) double totalTime;
@property (nonatomic, assign, readonly) double maxSpeed;
@property (nonatomic, assign, readonly) double avgSpeed;

- (instancetype)initWithType:(KYSportType)sportType;
- (MAPolyline *)polyLineWithLocation:(CLLocation *)location color:(UIColor *)color;

@end
